<?php
declare (strict_types = 1);

namespace app\login\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Admin extends Model
{
    //
    public function captcha($phone)
    {
        $res = $this->where('phone',$phone)->find();
        if ($res)
        {
            return true;
        }
    }

    public function loginUse($phone)
    {
        $list = $this->where('phone',$phone)->find();
        if ($list)
        {
            return $list;
        }
    }
}
